<template>
  <!-- 修改信息 -->
  <div class="diyInfo">
    <div class="box" v-for="(item, index) in info" :key="index">
      <p>{{ item }}</p>
      <van-icon name="arrow" color="#999" size="25px" />
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      info: [],
    };
  },
  created() {
    this.$parent.infoBtn.forEach((item) => {
      this.info.push(item.content);
    });
  },
};
</script>

<style lang="scss" scoped>
.box {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  box-sizing: border-box;
  border-bottom: 1px solid #f7f7f7;
  border-top: 1px solid #f7f7f7;
  p {
    font-size: 16px;
    color: #999;
    line-height: 24px;
  }
}
</style>
